﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MoFramework
{
    abstract public class BaseManager<T>:BaseSingleton<T>, IManager where T: BaseManager<T>,new ()
    {
        public FrameWorkMgr m_FWMgr;

        public BaseManager()
        {
        }

        public void Start()
        {
            m_FWMgr = FrameWorkMgr.mgr;
            OnStart();
        }
        public void Update()
        {
            OnUpdate();
        }

        virtual protected void OnUpdate() { }

        virtual protected void OnStart() { }
    }
}
